package com.aw.guiguzi.bean

import com.aw.baselib.util.AwDataUtil
import com.aw.baselib.util.AwDateUtil
import java.io.Serializable

class MsgItemBean : Serializable {
    /**
     * id : 1024
     * userId : 25025
     * userType : MQ==
     * templateId : 13013
     * templateCode : test_01
     * templateNickname : 芋艿
     * templateContent : 测试内容
     * templateType : 2
     * templateParams : {}
     * readStatus : true
     * readTime :
     * createTime :
     */
    var id: String? = null
    var userId: String? = null
    var userType: String? = null
    var templateId: String? = null
    var templateCode: String? = null
    var templateNickname: String? = null
    var templateContent: String? = null
    var templateType: String? = null
    var templateParams: TemplateParamsBean? = null
    var isReadStatus = false
    var readTime: String? = null
        get() = if (AwDataUtil.isEmpty(field)) {
            ""
        } else AwDateUtil.formatUnixTime(field)
    var createTime: String? = null
        get() = if (AwDataUtil.isEmpty(field)) {
            ""
        } else AwDateUtil.formatUnixTime(field)

    class TemplateParamsBean : Serializable {
        var detailContent: String? = null
    }
}